package CoreNRMSystem;
/**
 * Generated from IDL enum "LinkStatusType".
 *
 * @author JacORB IDL compiler V 2.3.0, 17-Feb-2007
 * @version generated at 2013-5-20 22:07:19
 */

public final class LinkStatusType
	implements org.omg.CORBA.portable.IDLEntity
{
	private int value = -1;
	public static final int _Avail = 0;
	public static final LinkStatusType Avail = new LinkStatusType(_Avail);
	public static final int _UnAvail = 1;
	public static final LinkStatusType UnAvail = new LinkStatusType(_UnAvail);
	public static final int _Block = 2;
	public static final LinkStatusType Block = new LinkStatusType(_Block);
	public int value()
	{
		return value;
	}
	public static LinkStatusType from_int(int value)
	{
		switch (value) {
			case _Avail: return Avail;
			case _UnAvail: return UnAvail;
			case _Block: return Block;
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	public String toString()
	{
		switch (value) {
			case _Avail: return "Avail";
			case _UnAvail: return "UnAvail";
			case _Block: return "Block";
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	protected LinkStatusType(int i)
	{
		value = i;
	}
	java.lang.Object readResolve()
	throws java.io.ObjectStreamException
	{
		return from_int(value());
	}
}
